<?php

// *** Documentation
/*______________________________________________________________________________

CEO Framework Template File

Last Update: Sep 2007
Author: Tom at klenwell@gmail.com

SUMMARY
  This file is loaded by the Ceo Framework output method and based on the SHOW
  settings builds and prints the (standards-compliant) XHTML which will be 
  displayed by the browser.
  
  The CEO framework object's internal Output object handles much of the logic
  in this section. 
		
NOTES
  The are four basic panels to any template:
  
    Head, Masthead, Core, Footer
    
  All other blocks are sub-elements of these panels  
  
______________________________________________________________________________*/

// *** Configure Dynamic Elements



// *** Build Standard Block Elements
  
  // build head
  $this->Output->add_head_doctype('xhtml', 'strict');
  $this->Output->add_head_title($_PAGE['title']);
  $this->Output->add_head_keywords($_PAGE['keywords']);
  $this->Output->add_head_description($_PAGE['description']);
  $this->Output->add_head_charset('utf-8');
  #$this->Output->add_head_favicon($favicon_url);
  #$this->Output->add_head_css_link($css_link);
  #$this->Output->add_head_js_link($js_link);
  #$this->Output->add_head_internal_css($css);
  #$this->Output->add_head_internal_js($js);
  #$this->Output->add_head_raw('<meta http-equiv="refresh" content="3;url=http://code.google.com/p/ceo/" />');
  $_HTML['head'] = $this->Output->build_head();
  
// *** Assemble Blocks into Panels

  // head
  $this->Output->PANEL['head'] = <<<HTML
{$_HTML['head']}
<!-- ============================== head / body ============================ -->
<body>

HTML;
  
  // masthead
  $this->Output->PANEL['masthead'] = '<h1>dummy masthead</h1>';
  
  // core
  $this->Output->PANEL['core'] = '<p>dummy core</p>';
  
  // footer
  $this->Output->PANEL['footer'] = '<h6>dummy footer</h6>';

  
// *** Output Full Template

  $this->Output->print_template();
  
  

  if ( $this->debug ) $this->print_d(__FILE__ . ' template file loaded');
?>
